import {
	https
} from '../https.js'
export default {
	// 添加客户
	async addCustomer(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/add',
			method: 'post',
			data
		})
		return res
	},
	// 客户查询
	async getCustomerList(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/list',
			method: 'get',
			data
		})
		return res
	},
	// 报备列表查询
	async getReportList(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/queryPageListByState',
			method: 'post',
			data
		})
		return res
	},
	// 代理商查询
	async getAgentList(data) {
		const res = await https({
			url: '/gzsd/gzAgent/list',
			method: 'get',
			data
		})
		return res
	},
	// 获取客户信息
	async getCustomerInfo(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/queryById',
			method: 'get',
			data
		})
		return res
	},

	// 获取电量申报列表
	async getDeclarationList(data) {
		const res = await https({
			url: '/gzsd/gzDeclaration/list',
			method: 'get',
			data
		})
		return res
	},
	//修改电量申报
	async editDeclaration(data) {
		const res = await https({
			url: '/gzsd/gzDeclaration/edit',
			method: 'post',
			data
		})
		return res
	},
	//添加电量申报
	async addDeclaration(data) {
		const res = await https({
			url: '/gzsd/gzDeclaration/add',
			method: 'post',
			data
		})
		return res
	},
	//添加电量申报
	async queryCompanyList(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/queryCompanyList',
			method: 'post',
			data
		})
		return res
	},
	//客户跟进记录
	async getCustomFollow(data) {
		const res = await https({
			url: '/gzsd/gzCustomFollow/list',
			method: 'get',
			data
		})
		return res
	},
	//添加客户跟进记录
	async addCustomFollow(data) {
		const res = await https({
			url: '/gzsd/gzCustomFollow/add',
			method: 'post',
			data
		})
		return res
	},
	//新增报价
	async addPackagePrice(data) {
		const res = await https({
			url: '/gzsd/gzPackagePrice/add',
			method: 'post',
			data
		})
		return res
	},
	//获取业务员
	async getUserList(data) {
		const res = await https({
			url: '/gzsd/sys/user/list',
			method: 'get',
			data
		})
		return res
	},
	//报备人
	async referenceList(data) {
		const res = await https({
			url: '/gzsd/sys/user/referenceList',
			method: 'post',
			data
		})
		return res
	},
	//审批详情
	async gzPackagePrice(data) {
		const res = await https({
			url: '/gzsd/gzPackagePrice/queryById',
			method: 'get',
			data
		})
		return res
	},
	//审批
	async examine(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/examine',
			method: 'post',
			data
		})
		return res
	},
	//撤回审批
	async revoke(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/revoke',
			method: 'post',
			data
		})
		return res
	},
	//复核
	async auditAndReview(data) {
		const res = await https({
			url: '/gzsd/gzCustomInfo/auditAndReview',
			method: 'post',
			data
		})
		return res
	},
	//获取合伙人列表
	async partnersList(data) {
		const res = await https({
			url: '/gzsd/gzRecruitingPartners/list',
			method: 'get',
			data
		})
		return res
	},
	//删除合伙人
	async partnersDelete(data) {
		const res = await https({
			url: `/gzsd/gzRecruitingPartners/delete?id=${data.id}`,
			method: 'delete',
		})
		return res
	},

}